﻿using System.Windows.Forms;

namespace loader
{
    public partial class setpass : Form
    {
        public setpass()
        {
            InitializeComponent();
            if (Program.localee.issupported)
            {
                this.Text = Program.localee["pass_title"];
                this.label1.Text = Program.localee["pass_descript"];
                this.btn_cancel.Text = Program.localee["btn_cancel"];
                this.btn_ok.Text = Program.localee["btn_ok"];
            }
        }

        public string passwd
        {
            get
            {
                return this.tbx_pass.Text;
            }
        }

        public void reset()
        {
            this.tbx_pass.Text = "";
        }

        private void tbx_pass_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter) this.DialogResult = DialogResult.OK;
        }
    }
}
